/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-01-15
 * Time: 15:15
 */
public class Test {
    public static void main(String[] args) {
    MySingleList mySingleList = new MySingleList();
    mySingleList.createLink();
    mySingleList.display();
    System.out.println(mySingleList.contains(23));
    System.out.println(mySingleList.contains(22));
    mySingleList.addFirst(47);
    mySingleList.display();
    System.out.println(mySingleList.size());
    mySingleList.addLast(34);
    mySingleList.display();
    mySingleList.addIndex(3,44);
    mySingleList.display();
    try {
        mySingleList.addIndex(3, 12);
    }catch(IndexOutOfException e) {
        e.printStackTrace();
    }

    }
}
